import http from "@/utils/request";
import model from "@/config/model";
export default {
  queryByLocale: {
    url: `${model.API_URL}/international-management/v1.0/i18n-config/query-by-locale/`,
    name: "查询",
    get: async function (data) {
      return await http.get(this.url + data);
    },
  },
  queryWithPage: {
    url: `${model.API_URL}/international-management/v1.0/i18n-config/query-with-page`,
    name: "分页查询",
    post: async function (data) {
      return await http.post(this.url, data);
    },
  },
  modify: {
    url: `${model.API_URL}/international-management/v1.0/i18n-config/modify`,
    name: "修改",
    post: async function (data) {
      return await http.post(this.url, data);
    },
  },
  saveBatch: {
    url: `${model.API_URL}/international-management/v1.0/i18n-config/save-batch`,
    name: "批量保存",
    post: async function (data) {
      return await http.post(this.url, data);
    },
  },
  delete: {
    url: `${model.API_URL}/international-management/v1.0/i18n-config/delete/`,
    name: "删除",
    get: async function (data) {
      return await http.get(this.url + data);
    },
  },
};
